import http from "./http";
export const floordataApi=()=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/home/floordata',
        method:'GET',
    })
}
export const catitemsApi=()=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        method:'GET',
    })
}
export const qsearchApi=(query)=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch',
        method:'GET',
        params:{
            query
        }
    })
}

// 分零
export const categoriesApi=()=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/categories',
        method:'GET',
    })
}